<?php
//print $alias;
?>
<article>
  <div id="node-<?php print $nodeid; ?>" class="node node-article node-wrapper teaser article clearfix">

    <div class="four columns">
      <?php echo anchor($alias,load_image('article_banner', $uri)); ?>
    </div>

    <div class="twelve columns">
      <header>
        <h1 class="node-title"><?php print anchor($alias, $title); ?></h1>
      </header>

      <div class="meta-data clearfix">
        <span class="username">Amitav Roy</span> on
        <span class="date"><?php print date('jS M Y', $created); ?></span>
      </div>

      <section>
        <p><?php print $teaser; ?></p>
        <div class="terms clearfix">
          <span class="left">Tags:</span> <ul class="left">
            <?php foreach($tags as $key=>$term): ?>
            <li>
              <?php
              $alias = $this->alias_model->get_alias($term['tid'],'term');
              print anchor($alias, $term['name']);
              ?>
              <?php if($key != count($tags) -1) {print ', ';} ?>
            </li>
            <?php endforeach; ?>
          </ul>
        </div>
      </section>
    </div>
  </div>
</article>